package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 安全库存
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "安全库存表")
@TableName("base_safe_stock")
public class SafeStock extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "库位ID",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String locationId;

    @EntityFieldAnnotation(
            text = "库位名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String locationName;

    @EntityFieldAnnotation(
            text = "物料ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrId;

    @EntityFieldAnnotation(
            text = "物料名称",
            length = "100",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrName;

    @EntityFieldAnnotation(
            text = "物料品规",
            length = "100",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrSpec;

    @EntityFieldAnnotation(
            text = "最低库存",
            length = "",
            not_null = true,
            default_value = "0.0000",
            comment = ""
    )
    private Double minSkuQty;

    @EntityFieldAnnotation(
            text = "最高库存",
            length = "",
            not_null = true,
            default_value = "0.0000",
            comment = ""
    )
    private Double maxSkuQty;

    @EntityFieldAnnotation(
            text = "补货至",
            length = "",
            not_null = true,
            default_value = "0.0000",
            comment = ""
    )
    private Double replenishToSkuQty;

    @EntityFieldAnnotation(
            text = "耗材型号",
            length = "100",
            not_null = false,
            default_value = "",
            comment = "耗材型号"
    )
    private String matrModel;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

}
